package person.zhaiming.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import person.zhaiming.commons.CommonResult;
import person.zhaiming.commons.entities.Payment;

/**
 * @program: my-cloud-study
 * @description:
 * @author: zhaiming
 * @create: 2020-12-09 00:03
 **/
@Component
@FeignClient(value = "CONSUL-PROVIDER-PAYMENT") //设定去调哪个接口
public interface ConsumerOpenFeignService {

    @GetMapping(value = "/payment/consul")
    public String paymentConsul();

    @GetMapping(value="/payment/getInfo/{id}")
    public String getInfo(@PathVariable("id") Long id);

    @GetMapping(value="/payment/getTimeoutInfo/{id}")
    public String getTimeoutInfo(@PathVariable("id")Long id);
}
